import createjs from "createjs-ts"
import cjs=createjs
export default class SpriteDemo extends cjs.Container {
    constructor() {
        super();
        const data={
            images: ['./assets/images/fire_seq_5x4_1124_zj_Tex.png'],
            frames: {width:200, height:260, count:20},
            animations: {
                run: [0, 19, 'run', 0.1]
            }
        }
        const spriteSheet = new cjs.SpriteSheet(data);
        const animation = new cjs.Sprite(spriteSheet,'run');
        //animation.framerate=10
        this.addChild(animation);
        //animation.play();
    }
}